  <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  <%@ taglib prefix="s" uri="/struts-tags" %>
  
  <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<s:action name="projectAction!searchTeacherOwnProject"></s:action>


  		<div class="top_info">
    	<img src="include/img/subjects.png" />
        <div>
        	<span>申请中的项目</span>
        </div>
    </div>
    <hr class="line" />
    <table>
    	<tr>
            <th>课题ID</th>
            <th>课题名</th>
            <th>发布状态</th>
            <th>操作</th>
        </tr>
       <s:iterator value="#request.applyProject" id="pap">
   		<tr>
   			<td><a href="projectAction!showproject?proid=<s:property value='#pap.project.pid'/>">
   			<s:property value="#pap.project.pid"/></a></td>
   			<td><s:property value="#pap.project.name"></s:property></td>
   			<td><s:property value="#pap.proTime.status"></s:property></td>
   			<td>
   				<input type="button" value="中止发布" onclick='$(".content").load("projectAction!overProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")' />
   				<input type="button" value="再次发布" onclick='$(".content").load("projectAction!againProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")'/>
   			</td>
   	 		</tr>
   		</s:iterator>
    </table>
    
    
      		<div class="top_info">
    	<img src="include/img/subjects.png" />
        <div>
        	<span>再次发布的项目</span>
        </div>
    </div>
    <hr class="line" />
    <table>
    	<tr>
            <th>课题ID</th>
            <th>课题名</th>
            <th>发布状态</th>
            <th>操作</th>
        </tr>
       <s:iterator value="#request.againProject" id="pap">
   		<tr>
   			<td><a href="projectAction!showproject?proid=<s:property value='#pap.project.pid'/>">
   			<s:property value="#pap.project.pid"/></a></td>
   			<td><s:property value="#pap.project.name"></s:property></td>
   			<td><s:property value="#pap.proTime.status"></s:property></td>
   			<td>
   				<input type="button" value="中止发布" onclick='$(".content").load("projectAction!overProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")' />
   				<input type="button" value="再次发布" onclick='$(".content").load("projectAction!againProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")'/>
   			</td>
   	 		</tr>
   		</s:iterator>
    </table>
    
    
      		<div class="top_info">
    	<img src="include/img/subjects.png" />
        <div>
        	<span>已结束发布的项目</span>
        </div>
    </div>
    <hr class="line" />
    <table>
    	<tr>
            <th>课题ID</th>
            <th>课题名</th>
            <th>发布状态</th>
            <th>操作</th>
        </tr>
       <s:iterator value="#request.overProject" id="pap">
   		<tr>
   			<td><a href="projectAction!showproject?proid=<s:property value='#pap.project.pid'/>">
   			<s:property value="#pap.project.pid"/></a></td>
   			<td><s:property value="#pap.project.name"></s:property></td>
   			<td><s:property value="#pap.proTime.status"></s:property></td>
   			<td>
   				<input type="button" value="中止发布" onclick='$(".content").load("projectAction!overProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")' />
   				<input type="button" value="再次发布" onclick='$(".content").load("projectAction!againProject?Pid=<s:property  escape='false' value='#pap.project.pid'/>")'/>
   			</td>
   	 		</tr>
   		</s:iterator>
    </table>
    